//
//  SYLoadingView.h
//  BasicSDKDemo
//
//  Created by huchu on 2018/8/8.
//  Copyright © 2018年 sysjones. All rights reserved.
//

#import <UIKit/UIKit.h>
typedef NS_ENUM(NSUInteger,LoadingViewType) {
    LoadingViewType_indicator,
    LoadingViewType_animatedView
};
@interface SYLoadingViewConfig:NSObject
@property (strong, nonatomic) UIFont *titleFont;
@property (strong, nonatomic) UIColor *hudBackgroundViewColor;
@property (strong, nonatomic) UIColor *hudContentBackgroundColor;
@property (strong, nonatomic) UIColor *hudContentAnimatedBackgroundColor;
@property (assign, nonatomic) CGFloat hudCornerRadius;
@property (strong, nonatomic) UIColor *titleColor;
@property (assign, nonatomic) UIEdgeInsets hudInset;
@property (assign, nonatomic) UIEdgeInsets hudAnimatedInset;
@property (assign, nonatomic) CGSize animatedImageViewSize;
+(SYLoadingViewConfig*)shared;
@end
@interface SYLoadingView : UIView
+(void)showLoadingInView:(UIView*)view  imageNamed:(NSString*)imageString;
+(void)showLoadingInView:(UIView*)view  titleString:(NSString *)string;
+(void)dimissLoading;
+(void)dimissLoadingForView:(UIView *)view;
@end
